from typing import Optional
from pydantic import BaseModel



# 更新user的schema
class User_Update_Schema(BaseModel):
    login_name: str
    user_name: str
    phonenumber: str
    user_role: str
    remark: str
    status: str
    update_by: str
    
class User_Schema(User_Update_Schema):
    password: str
    create_by: Optional[str]